<template>
	<view>
		<view class="smart-panel-h" @click="goDetailPage('tests1')">
			<text>tests1</text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
				goDetailPage(e) {
			      if (typeof e === 'string') {
			        uni.navigateTo({
			          url: '/pages/components/' + e + '/' + e
			        });
			      } else {
			        uni.navigateTo({
			          url: e.url
			        });
				}
			}
		}
	}
</script>


<style>

</style>
